import request from '@/utils/request'

// 查询就业信息列表
export function listRecruit(query) {
  return request({
    url: '/zua/recruit/list',
    method: 'get',
    params: query
  })
}

// 查询就业信息详细
export function getRecruit(recruitId) {
  return request({
    url: '/zua/recruit/' + recruitId,
    method: 'get'
  })
}

// 新增就业信息
export function addRecruit(data) {
  return request({
    url: '/zua/recruit',
    method: 'post',
    data: data
  })
}

// 修改就业信息
export function updateRecruit(data) {
  return request({
    url: '/zua/recruit',
    method: 'put',
    data: data
  })
}

// 删除就业信息
export function delRecruit(recruitId) {
  return request({
    url: '/zua/recruit/' + recruitId,
    method: 'delete'
  })
}

// 导出就业信息
export function exportRecruit(query) {
  return request({
    url: '/zua/recruit/export',
    method: 'get',
    params: query
  })
}
